<!--
 * @Date: 2019-12-08 10:38:22
 * @LastEditors: 黄栋
 * @LastEditTime: 2020-03-26 09:59:01
 * @FilePath: /GIV/src/native/entry.vue
 -->
<template>
  <div style></div>
</template>
<script>
export default {
  props: {},
  data() {
    return {};
  },
  methods: {
    onLoad() {
      // const page = weex.requireModule("page");
      // page.doubleBack();
      let url = "root:index.js";
      this.goToMain(url);
    },
    goToMain(url) {
      let navigator = weex.requireModule("navigator"); 
      if (weex.config.env.platform != "iOS") {
        navigator.pushFull({
          url: url,
          animated: false
        });
      } else {
        navigator.presentFull({
          url: url,
          animated: false
        });
      }
    }
  },
  created() {
    // this.goToMain('root:index.js')
  }
};
</script>
<style>
</style>
